/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package business.Imp;

import data.Imp.CommentServiceDAOImp;
import data.Services.CommentDAOService;
import java.util.List;
import model.entity.Comment;

/**
 *
 * @author ninkuhack
 */
public class CommentServiceImp implements business.Service.CommentService{

    CommentDAOService cds = new CommentServiceDAOImp();
    @Override
    public List<Comment> getAllComment() {
        return cds.getAllComment();
    }

    @Override
    public boolean createComment(Comment comment) {
        return cds.createComment(comment);
    }

    @Override
    public boolean removeComment(Comment comment) {
        return cds.createComment(comment);
    }

    @Override
    public boolean deleteComment(int commentID) {
        return cds.deleteComment(commentID);
    }

    @Override
    public boolean lockComment(Comment comment) {
        return cds.lockComment(comment);
    }

    @Override
    public boolean restoreComment(Comment comment) {
        return cds.restoreComment(comment);
    }

    @Override
    public List<Comment> findCommentUserID(int userID) {
        return cds.findCommentPostID(userID);
    }

    @Override
    public List<Comment> findCommentPostID(int postID) {
        return cds.findCommentPostID(postID);
    }

    @Override
    public Comment getCommentByID(int commentID) {
        return cds.getCommentByID(commentID);
    }

    @Override
    public boolean updateComment(Comment comment) {
        return cds.updateComment(comment);
    }
    
}
